<template>
  <div class="header">
    <mt-header fixed :title="$store.state.detailTitle">
      <a href="javascript:;" @click="back" slot="left">
        <img class="back" src="../../../static/img/back0.png"/>
      </a>
    </mt-header>
  </div>

</template>

<script type="text/ecmascript-6">
    export default {
      methods:{
        back(){
          if ( this.$route.path == '/areaDetail' ){
            this.$router.push('/index');
          }else {
            this.$router.go(-1);
          }
        }
      }
    };
</script>

<style scoped="scoped" >

</style>
